package com.example.batchprocessing;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "jdbc")
@PropertySource("classpath:db.properties")
public class DatasourceProperties {

  private String driverClassName;
  private String url;
  private String username;
  private String password;
  private Integer initialSize;
  private Integer minIdle;
  private Integer maxActive;
  private Long maxWait;
  private Long timeBetweenEvictionRunsMillis;
  private Long minEvictableIdleTimeMillis;

}
